
#ifndef QR_COMMON_H
#define QR_COMMON_H

#include "qr-const.h"

C_BEGIN_DECLS

int qr_check_version(int version);
int qr_check_mode(QRMode mode);
int qr_check_ec_level(ECLevel ec_level);
int qr_check_mask_pattern(MaskPattern mask_pattern);
int qr_character_count_indicator(int version, QRMode mode);
int qr_data_words_count(int version, ECLevel ec_level);
int qr_ec_words_count(int version, ECLevel ec_level);
int qr_remainder_count(int version);
int qr_ecc_block_count1(int version, ECLevel ec_level);
int qr_ecc_block_count2(int version, ECLevel ec_level);
int qr_ecc_data_length1(int version, ECLevel ec_level);
int qr_ecc_data_length2(int version, ECLevel ec_level);
int qr_ecc_ecc_length(int version, ECLevel ec_level);
int qr_width(int version);
unsigned int qr_format_information(ECLevel ec_level, MaskPattern mask_pattern);

C_END_DECLS

#endif	// QR_COMMON_H

